package com.funny.springcloud.feign;

import com.funny.springcloud.entities.Payment;
import com.funny.springcloud.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("cloud-provider-payment")
public interface PaymentReignService {

    @GetMapping("/payment/get/{id}")
    R<Payment> getPayment(@PathVariable("id") Long id);

    @GetMapping("/payment/feign/timeout")
    String paymentFeignTimeout();
}
